<template>
  <div>
    <el-form ref="form" style="width: 400px;margin: 100px auto;" :model="form" label-width="80px">
      <el-form-item label="企业名称">
        <el-input v-model="form.name" disabled />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input v-model="form.companyAddress" disabled />
      </el-form-item>
      <el-form-item label="公司电话">
        <el-input v-model="form.companyPhone" disabled />
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input v-model="form.mailbox" disabled />
      </el-form-item>
      <el-form-item label="备注">
        <el-input v-model="form.remarks" disabled />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getCompanyInfo } from '@/api/company'
import { mapGetters } from 'vuex'
export default {

  computed: {
    ...mapGetters(['userInfo'])
  },

  async created() {
    const res = await getCompanyInfo(this.userInfo.companyId)
    this.form = res.data
  },

  data() {
    return {
      form: {}
    }
  }
}
</script>

<style>
</style>
